package Java7_Concurrency_Cookbook.thread_executor_framework.fixed_thread_pool;

import Java7_Concurrency_Cookbook.thread_executor_framework.cached_thread_pool.Task;

/**
 * FixedThreadPool 解决了 CachedThreadPool 有可能创建过多线程的问题
 * @author lixiangke
 * @date 2017/11/17
 */
public class Main {
    public static void main(String[] args) {
        Server server = new Server();
        for (int i = 0; i < 100; i++) {
            Task task = new Task("Zoom" + i);
            server.executeTask(task);
        }
        server.endServer();
    }
}
